<?php

namespace app\common\model;

use think\Model;

/**
 * em_slide 幻灯片子项表
 * @property integer $id (主键)
 * @property integer $status 状态,1:显示;0:隐藏
 * @property integer $type 类型
 * @property float $list_order 排序
 * @property string $title 幻灯片名称
 * @property string $image 幻灯片图片
 */
class Slide extends Model
{
    /**
     * The connection name for the model.
     *
     * @var string|null
     */
    protected $connection = 'mysql';
    
    /**
     * The table associated with the model.
     *
     * @var string
     */
    protected $table = 'em_slide';

    /**
     * The primary key associated with the table.
     *
     * @var string
     */
    protected $pk = 'id';
    
    
    const TYPE = ['home' => '首页'];
    
    // public function getImageAttr($value)
    // {
    //     return getFormatFile($value);
    // }
    //
    // public function setImageAttr($value)
    // {
    //     return setFormatFile($value);
    // }
}
